package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("on_sell")
public class OnSellDO {
    private Integer storeId; // 店家
    private String barCode; // 商品吗
    private BigDecimal originalPrice; // 原价
    private BigDecimal specialPrice; // 特价
    private Boolean useSpecialPrice; // 使用特价
    @TableField("`count`")
    private Integer count; // 累计在售
    private Integer surplus; // 现剩余在售
    private Integer repairDays; // 店保修
    private Integer returnDays; // 店包退
    private Integer exchangeDays; // 店包换

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getSpecialPrice() {
        return specialPrice;
    }

    public void setSpecialPrice(BigDecimal specialPrice) {
        this.specialPrice = specialPrice;
    }

    public Boolean getUseSpecialPrice() {
        return useSpecialPrice;
    }

    public void setUseSpecialPrice(Boolean useSpecialPrice) {
        this.useSpecialPrice = useSpecialPrice;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getSurplus() {
        return surplus;
    }

    public void setSurplus(Integer surplus) {
        this.surplus = surplus;
    }

    public Integer getRepairDays() {
        return repairDays;
    }

    public void setRepairDays(Integer repairDays) {
        this.repairDays = repairDays;
    }

    public Integer getReturnDays() {
        return returnDays;
    }

    public void setReturnDays(Integer returnDays) {
        this.returnDays = returnDays;
    }

    public Integer getExchangeDays() {
        return exchangeDays;
    }

    public void setExchangeDays(Integer exchangeDays) {
        this.exchangeDays = exchangeDays;
    }

    @Override
    public String toString() {
        return "OnSellDO{" +
                "storeId=" + storeId +
                ", barCode='" + barCode + '\'' +
                ", originalPrice=" + originalPrice +
                ", specialPrice=" + specialPrice +
                ", useSpecialPrice=" + useSpecialPrice +
                ", count=" + count +
                ", surplus=" + surplus +
                ", repairDays=" + repairDays +
                ", returnDays=" + returnDays +
                ", exchangeDays=" + exchangeDays +
                '}';
    }
}
